using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._GeodatabaseAdministration
{
    /// <summary>
    /// <para>Compress</para>
    /// <para>Compresses an enterprise geodatabase by removing states not referenced by a version and redundant rows.</para>
    /// <para>通过移除版本未引用的状态和冗余行来压缩企业级地理数据库。</para>
    /// </summary>    
    [DisplayName("Compress")]
    public class Compress : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public Compress()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_workspace">
        /// <para>Input Database Connection</para>
        /// <para>The database connection file that connects to the enterprise geodatabase to be compressed. Connect as the geodatabase administrator.</para>
        /// <para>连接到要压缩的企业级地理数据库的数据库连接文件。以地理数据库管理员身份进行连接。</para>
        /// </param>
        public Compress(object _in_workspace)
        {
            this._in_workspace = _in_workspace;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Compress";

        public override string CallName => "management.Compress";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_workspace, _out_workspace];

        /// <summary>
        /// <para>Input Database Connection</para>
        /// <para>The database connection file that connects to the enterprise geodatabase to be compressed. Connect as the geodatabase administrator.</para>
        /// <para>连接到要压缩的企业级地理数据库的数据库连接文件。以地理数据库管理员身份进行连接。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Database Connection")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_workspace { get; set; }


        /// <summary>
        /// <para>Compressed Input Workspace</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Compressed Input Workspace")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_workspace { get; set; }


        public Compress SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}